﻿<MContainer>
    <MProgressLinear Value="@_power" Color="amber" Height="25" OnChange="PowerChanged"></MProgressLinear>
</MContainer>
<MContainer>
    <MProgressLinear Value="@_skill" Color="blue-grey" Height="25" OnChange="SkillChanged">
        <strong>@($"{context}%")</strong>
    </MProgressLinear>
</MContainer>
<MContainer>
    <MProgressLinear Value="@_knowledge" Height="25" OnChange="KnowledgeChanged">
        <strong>@($"{context}%")</strong>
    </MProgressLinear>
</MContainer>

@code {
    private double _skill = 20;
    private double _knowledge = 33;
    private double _power = 78;

    private void SkillChanged(double value)
    {
        _skill = value;
    }

    private void KnowledgeChanged(double value)
    {
        _knowledge = value;
    }

    private void PowerChanged(double value)
    {
        _power = value;
    }
}

